These are chat archives for chandu0101/scalajs-react-components

5th
Nov 2015
Janos Haber
@b0c1
Nov 05 2015 11:14
@elacin I try to use ReactTable, but no success... I want to set the data when the state is change, I set data=$.state.runNow() but nothing happened (in mod state I call runNow too)
the initial state is show but it looks creeepy :D
blob
This message was deleted
ReactTable(data = $.state.runNow(), columns = List("title"), rowsPerPage=25)
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 14:34
@b0c1 pretty sure you just need to enable scalacss
also no need to call $.state.runNow() yourself, your render() can just take state as a parameter
Janos Haber
@b0c1
Nov 05 2015 14:39
(tried to hack to work) but I run out of success
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 14:40
yeah i saw that project
Janos Haber
@b0c1
Nov 05 2015 14:40
I know I must write a lot of tag
and css... but ...
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 14:41
yeah i didnt quite get the point with it, it doesnt solve the problems i want to be solved
especially i never again want to write a single css class name
but well, i dont really like ReactTable the way it is now
Janos Haber
@b0c1
Nov 05 2015 14:42
yeah :|
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 14:42
but i used it for one of my projects by copying it into my code and changing it there, that worked well
Janos Haber
@b0c1
Nov 05 2015 14:42
but develop a kendoui or extjs like grid is really hard :D
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 14:42
its almost impossible to write a table that will fit everybodys requirements
so i have been thinking that we could have a "source only" repository for things like that, which is meant to be hacked/changed before you use them
at least until we land on something that is more usable
Janos Haber
@b0c1
Nov 05 2015 17:32
@elacin i checked the library, it just call the js method to the tag
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 18:44
hmm, js method to the tag? what? @b0c1
Janos Haber
@b0c1
Nov 05 2015 18:45
I'll explain later... Kidd time
Janos Haber
@b0c1
Nov 05 2015 19:17
It's create a react component from each element and on mount or update call the Material.componentHandler.upgradeElement(elementDomNode)
so that's all what's that library do...
the biggest problem the init method called before my script render the tree, and it's not create the drawer icon...
(bind the js functionality and so on)
maybe... I can ... ohh tale time :D
Øyvind Raddum Berg
@oyvindberg
Nov 05 2015 19:25
ahh right you talked about that other library
yes in that case i understand
Janos Haber
@b0c1
Nov 05 2015 20:06
hehe :) yeah... uhh I have a brutal headache...