class StyleGrid(DataGrid): """A styled grid ``[0.1.6]/datagrid.ts#L64`` """ # pylint: disable=no-member _model_name = T.Unicode("StyleGridModel").tag(sync=True) _view_name = T.Unicode("StyleGridView").tag(sync=True) row_size = T.Int().tag(sync=True) column_size = T.Int().tag(sync=True) row_header_size = T.Int().tag(sync=True) column_header_size = T.Int().tag(sync=True) header_visibility = T.Enum( ["all", "row", "column", "none"], default_value="all" ).tag(sync=True) grid_style = W.trait_types.InstanceDict(GridStyle).tag( sync=True, **W.widget_serialization ) cell_renderers = T.List(T.Instance(CellRenderer)).tag( sync=True, **W.widget_serialization )
class Expand(Fn, JSONLDBase): """Expand a JSON document to a list of nodes""" _model_name = T.Unicode("ExpandModel").tag(sync=True) source = T.Dict(allow_none=True).tag(sync=True) expand_context = T.Dict(allow_none=True).tag(sync=True) value = T.List(allow_none=True).tag(sync=True) _observed_traits = ["source", "expand_context"] def the_function(self, source, expand_context): """actually expand""" return jsonld.expand(source, dict(expandContext=expand_context))
class StyleGrid(DataGrid): """ A styled grid [0.1.6]/datagrid.ts#L64 """ _model_name = T.Unicode("StyleGridModel").tag(sync=True) _view_name = T.Unicode("StyleGridView").tag(sync=True) row_size = T.Int().tag(sync=True) column_size = T.Int().tag(sync=True) row_header_size = T.Int().tag(sync=True) column_header_size = T.Int().tag(sync=True) void_color = AlphaColor("#F3F3F3").tag(sync=True) background_color = AlphaColor("#FFFFFF").tag(sync=True) grid_line_color = AlphaColor("rgba(20, 20, 20, 0.15)").tag(sync=True) header_background_color = AlphaColor("#F3F3F3").tag(sync=True) header_grid_line_color = AlphaColor("rgba(20, 20, 20, 0.25)").tag(sync=True) cell_renderers = T.List(T.Instance(CellRenderer)).tag( sync=True, **W.widget_serialization )