On Mar 1, 2017, at 08:28, chupach <mathieur1507@gmail.com> wrote:
ok, i guess this is not the right way to go: the string length can be limited on the js side acting on the columndatasource cds
self.cds.js_on_change('change:data', js_callback)
but still, this is not efficient as we have to scan the entirety of the cds for each change of a single row and single column.
if anybody knows a more efficient solution to truncate a user entry in a datatable, let us know
thx
On Wednesday, March 1, 2017 at 2:38:22 PM UTC+1, chupach wrote:
Hello,
I want to limit the number of characters allowed in a datatable column on the js side to prevent a user entering a too large amount of them.
Given a datatable with a tableColumn editor=ed where ed=StringEditor(),
and
ed.js_on_change('data',ed_callback) # i tried also with 'value'
where
ed_callback = CustomJS(code="""console.log('string changed');""")
While the server runs without error, the js callback is not called.
Any workaround or am i doing stg wrong ?
thx !
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c94b7f8e-ea01-4bf7-9463-335049b82850%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.