This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Aseem Lalfakawma <alalfakawma.github.io> | |
This SCSS mixin will allow sizing of table columns in Bulma CSS Framework. | |
The Bulma framework does not support this yet, this small code snippet fixes this. | |
USAGE: | |
* Should be applied on TH element, it controls all the columns under it * | |
The class should be "is-#", | |
is-1 will give the first widthamount, is-2 will give the second. | |
Eg. The code below shows the widthAmounts as (1, 2.5, 3, 4 , 5, 6, 7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: | |
// export default debounce(100)(MyComponent); | |
import React from 'react'; | |
import debounce from 'lodash/debounce'; | |
export default (interval, ...debounceArgs) => { | |
if (typeof interval !== 'number' && interval > 0) { | |
throw new Error('[debounce] Interval (ms) parameter not received.'); | |
} |