react-toolbox

Using webpack to prepend variables for SCSS

一个人想着一个人 提交于 2021-01-02 06:55:07
问题 Webpack amateur here... I'm trying to incorporate a theme.scss file to customize the theme used by React Toolbox by following the directions specified here, namely: If you are using Webpack as module bundler, you are probably using sass-loader as well. What we want to do is to prepend to each SASS file compilation a bunch of variables to override and this can be done with the data option. For example: sassLoader: { data: '@import "' + path.resolve(__dirname, 'theme/_theme.scss') + '";' } In

react js warnings in console unknown prop

╄→гoц情女王★ 提交于 2020-01-05 03:43:48
问题 I've got a reactJS application with react-toolbox in console I got this error: Warning: Unknown prop `raised` on <a> tag. Remove this prop from the element. Any Idea how I can solve this warning? I don't want to remove the tag, is there workaround to get this worked with not removing this? thanks Update <Button icon='save' type="submit" label={<T value='processes.new.save'/>} raised primary/> I use this stuff: http://react-toolbox.com/#/components/button 回答1: This is happening because the

React Toolbox Use Default CSS Style

≡放荡痞女 提交于 2019-12-23 02:43:07
问题 How do I correctly use the default styling of React-Toolbox? I would like to try this library, but have lost hours trying to configure the scss/css. I can import and render react-toolbox components, but they are not styled. Roboto font and material work fine using <link> tags in public/index.html According to the brief installation steps, I have included css-loader, sass-loader, and babel. I copied the example project from https://github.com/react-toolbox/react-toolbox-example. I removed the

React-Toolbox: How to apply theme

假装没事ソ 提交于 2019-12-12 18:15:21
问题 I'm using react toolbox and in my webpack configuration i have (i post just the significant part of the configuration): loaders: [ ..... ExtractTextPlugin.extract('style', 'css?sourceMap&modules&importLoaders=1&localIdentName=' + '[name]__[local]___[hash:base64:5]!postcss!sass') } ] postcss: [autoprefixer], sassLoader: { data: '@import "' + path.resolve(__dirname, 'app/theme/_config.scss') + '";' } In app/theme/_config.scss i have defined: @import "~react-toolbox/lib/colors"; @import "~react

Is it possible to add infinite scrolling to React Tool Box Table body?

和自甴很熟 提交于 2019-12-12 04:57:51
问题 I am using react-toolbox table component in my app(react-toolbox for material styles implementation). I need to add infinite scrolling pagination for the table body. I found some libraries which does this for me, some of those are react-infinite, react-infinite-scroller, But the problem is, to use any library I need to put table rows as children inside the their library component, but ract-toolbox table does not allow me to use any div 's or special components inside, from the docs: An

React onChange event doesnt return object

99封情书 提交于 2019-12-11 14:36:45
问题 i'm setting up a simple signup form with react and using an onChange handler to update state. the event argument caught by the onChange handler is a string and not an object . therefore i'm unable to access event.target.value or event event.target event simply yields my typed keywords this is the relevant snippet. class SignUp extends Component{ constructor(props){ super(props); this.state = { username:'', password:'' } this.handleChange = this.handleChange.bind(this) } handleChange(event){

React Toolbox Use Default CSS Style

那年仲夏 提交于 2019-12-06 16:21:45
How do I correctly use the default styling of React-Toolbox? I would like to try this library, but have lost hours trying to configure the scss/css. I can import and render react-toolbox components, but they are not styled. Roboto font and material work fine using <link> tags in public/index.html According to the brief installation steps, I have included css-loader, sass-loader, and babel. I copied the example project from https://github.com/react-toolbox/react-toolbox-example . I removed the extra style sheets, such as style.scss in a couple places, to pare down and reduce confusion. I

React-toolbox how to include the styles correctly

点点圈 提交于 2019-12-02 00:55:21
问题 I am trying to use the date picker from react-toolbox. Here is my webpack config: { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader!cssnext-loader') },{ test: /\.scss$/, loaders: ['style', 'css', 'sass'] } I have .scss in the resolve section: resolve: { extensions: ['', '.js', '.jsx', '.scss'] }, I have also wrapped my App component within ToolboxAPP ReactDOM.render( <ToolboxApp> <Provider store={store}> <App /> </Provider> </ToolboxApp> , document.getElementById

React-toolbox how to include the styles correctly

久未见 提交于 2019-12-01 21:00:36
I am trying to use the date picker from react-toolbox . Here is my webpack config: { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader!cssnext-loader') },{ test: /\.scss$/, loaders: ['style', 'css', 'sass'] } I have .scss in the resolve section: resolve: { extensions: ['', '.js', '.jsx', '.scss'] }, I have also wrapped my App component within ToolboxAPP ReactDOM.render( <ToolboxApp> <Provider store={store}> <App /> </Provider> </ToolboxApp> , document.getElementById('root')) When I rendered the component, here is what it looks like: You can see from the image that