@indlekofer/media_print
v1.1.0
Published
media print
Downloads
3
Readme
@indlekofer/media_print
Usage
import GET_PRINT, { REDUCER as MEDIA_REDUCER } from '@indlekofer/media_print';
const mapStateToProps = (state) => {
return {
mediaPrint: state[MEDIA_REDUCER].get(GET_PRINT) //mediaPrint -> false
}
}
Function exports
init
detect print and run config with the that value
setup
add eventlisteners and initialize media
unset
remove all event listeners
config
set specific value for print