Example of using DataTable CellEditors

If I understand correctly Datatables are based on slickgrid, and can use editors as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

Hi,

···

On Thu, Sep 10, 2015 at 4:09 PM, Pythonic [email protected] wrote:

If I understand correctly Datatables are based on slickgrid, and can use editors

Yes and and yes, thought there may be some differences in attribute names and/or accepted types.

as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/data_tables.py

Mateusz

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a94ea2-820d-4329-b547-57ed0a402c3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I thought I had just posted but must have discarded instead…

Many thanks for the examples, that’s perfect

Follow up question:

Is there a way to do a remote-source autocomplete on StringEditor, AJAX-style?

This line in the example you pointed to shows a completions field which is set to a static models list. How can I provide the value of completions from server dynamically? Thanks

···

On Thursday, 10 September 2015 15:24:07 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 4:09 PM, Pythonic [email protected] wrote:

If I understand correctly Datatables are based on slickgrid, and can use editors

Yes and and yes, thought there may be some differences in attribute names and/or accepted types.

as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/data_tables.py

Mateusz

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a94ea2-820d-4329-b547-57ed0a402c3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

···

On Thu, Sep 10, 2015 at 8:30 PM, Pythonic [email protected] wrote:

I thought I had just posted but must have discarded instead…

Many thanks for the examples, that’s perfect

Follow up question:

Is there a way to do a remote-source autocomplete on StringEditor, AJAX-style?

This line in the example you pointed to shows a completions field which is set to a static models list. How can I provide the value of completions from server dynamically? Thanks

This is not possible out of the box. If you don’t mind starting an issue for this, I could add this for 0.10.

Alternatively I wanted to suggest a hack using AjaxDataSource and JavaScript callbacks, but when I got to the details, it’s not as practical as I thought, because cell editors don’t listen to property changes. This is a common issue across various components, that needs to be finally resolved in bokehjs.

Mateusz

On Thursday, 10 September 2015 15:24:07 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 4:09 PM, Pythonic [email protected] wrote:

If I understand correctly Datatables are based on slickgrid, and can use editors

Yes and and yes, thought there may be some differences in attribute names and/or accepted types.

as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/data_tables.py

Mateusz

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a94ea2-820d-4329-b547-57ed0a402c3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2c65df91-a734-4750-bcd3-b3c54103b550%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Many thanks!

(I’d note that, if I understand correctly, AjaxDataSource does a continuous polling so it seems a bit of an overkill for anything that is not streaming)

···

On Thursday, 10 September 2015 23:22:10 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 8:30 PM, Pythonic [email protected] wrote:

I thought I had just posted but must have discarded instead…

Many thanks for the examples, that’s perfect

Follow up question:

Is there a way to do a remote-source autocomplete on StringEditor, AJAX-style?

This line in the example you pointed to shows a completions field which is set to a static models list. How can I provide the value of completions from server dynamically? Thanks

This is not possible out of the box. If you don’t mind starting an issue for this, I could add this for 0.10.

Alternatively I wanted to suggest a hack using AjaxDataSource and JavaScript callbacks, but when I got to the details, it’s not as practical as I thought, because cell editors don’t listen to property changes. This is a common issue across various components, that needs to be finally resolved in bokehjs.

Mateusz

On Thursday, 10 September 2015 15:24:07 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 4:09 PM, Pythonic [email protected] wrote:

If I understand correctly Datatables are based on slickgrid, and can use editors

Yes and and yes, thought there may be some differences in attribute names and/or accepted types.

as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/data_tables.py

Mateusz

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a94ea2-820d-4329-b547-57ed0a402c3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2c65df91-a734-4750-bcd3-b3c54103b550%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Issue: https://github.com/bokeh/bokeh/issues/2839

···

On Friday, 11 September 2015 08:37:00 UTC+1, Pythonic wrote:

Many thanks!

(I’d note that, if I understand correctly, AjaxDataSource does a continuous polling so it seems a bit of an overkill for anything that is not streaming)

On Thursday, 10 September 2015 23:22:10 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 8:30 PM, Pythonic [email protected] wrote:

I thought I had just posted but must have discarded instead…

Many thanks for the examples, that’s perfect

Follow up question:

Is there a way to do a remote-source autocomplete on StringEditor, AJAX-style?

This line in the example you pointed to shows a completions field which is set to a static models list. How can I provide the value of completions from server dynamically? Thanks

This is not possible out of the box. If you don’t mind starting an issue for this, I could add this for 0.10.

Alternatively I wanted to suggest a hack using AjaxDataSource and JavaScript callbacks, but when I got to the details, it’s not as practical as I thought, because cell editors don’t listen to property changes. This is a common issue across various components, that needs to be finally resolved in bokehjs.

Mateusz

On Thursday, 10 September 2015 15:24:07 UTC+1, mateusz.paprocki wrote:

Hi,

On Thu, Sep 10, 2015 at 4:09 PM, Pythonic [email protected] wrote:

If I understand correctly Datatables are based on slickgrid, and can use editors

Yes and and yes, thought there may be some differences in attribute names and/or accepted types.

as suggested in the docs here: selecteditor, texteditor, dateeditor…

Are there examples of how to use these we can refer to? Thanks

https://github.com/bokeh/bokeh/blob/master/examples/glyphs/data_tables.py

Mateusz

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/79a94ea2-820d-4329-b547-57ed0a402c3d%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

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 [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2c65df91-a734-4750-bcd3-b3c54103b550%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.