office-fabric-pager
v1.0.1
Published
Custom pagination control with office fabric styling
Readme
office-fabric-pager
npm start to run
Features
webpack.configwritten in ts- tree-shaking support (all without having to use babel)
- no
JSX(orTSX). All pure ts withreact-dom-factories tsconfigusespathsto make import paths look nicer- webpack > resolve > alias should inform webpack what these mean (not fully tested yet)
- pager component (to be used with table or fabric 'DetailsList' component):
- see
PaginationModelOptionsdocumentation for the available options - set
initialPaginationModelin src/model
- see
Notes
tsconfigmay have extraneous items (libs for example)tsconfig.webpack.jsonis what webpack will transpile ts into- it receives the es5 code with es6 modules so it can tree-shake...
- then it transpiles again to es5 and commonjs modules for the browser
tslintis a tad opinionated and can be modified per liking
