package incr_dom_partial_render

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Make.ModelSource

Sourcetype t
include Ppx_compare_lib.Comparable.S with type t := t
Sourceval compare : t -> t -> int
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create : scroll_margin:Util.Margin.t -> scroll_region:Util.Scroll_region.Id.t -> float_header:Util.Float_type.t -> float_first_col:Util.Float_type.t -> height_guess:float -> ?id:Table_id.t -> ?initial_sort:Base_sort_criteria.t -> ?initial_focus_row:Row_id.t -> ?initial_focus_col:Column_id.t -> unit -> t
Sourceval scroll_region : t -> Util.Scroll_region.Id.t
Sourceval set_scroll_region : t -> Util.Scroll_region.Id.t -> t
Sourceval id : t -> Table_id.t
Sourceval float_header : t -> Util.Float_type.t
Sourceval float_first_col : t -> Util.Float_type.t
Sourceval focus_row : t -> Row_id.t option
Sourceval focus_col : t -> Column_id.t option
Sourceval sort_criteria : t -> Base_sort_criteria.t
Sourceval sort_columns : t -> Column_id.t list
Sourceval sort_dirs : t -> Sort_dir.t list
Sourceval scroll_margin : t -> Util.Margin.t
Sourceval set_float_first_col : t -> Util.Float_type.t -> t
Sourceval set_float_header : t -> Util.Float_type.t -> t
Sourceval set_scroll_margin : t -> Util.Margin.t -> t
Sourceval set_sort_criteria : t -> Base_sort_criteria.t -> t

cycle_sorting computes and sets new sort criteria based on the current criteria. If the given column id already exists in the sort criteria, the column's sort direction is updated by calling next_dir on its current sort direction. Otherwise, the sort direction is computed by calling next_dir on None. If the new direction is None, the column id is removed from the sort criteria.

If keep_existing_cols is passed in as an argument, all existing column ids are kept in the sort criteria, and the given column id is added or promoted to the front of the sort criteria list (i.e. given the highest precedence).

If keep_existing_cols is not passed in, all column ids apart from the given one are removed from the sort criteria.

Sourceval cycle_sorting : ?keep_existing_cols:unit -> t -> Column_id.t -> next_dir:(Sort_dir.t option -> Sort_dir.t option) -> t
Sourceval get_tbody_rect : t -> float Incr_dom.Js_misc.Rect.t option

Returns the bounding client rectangle of the table body.

OCaml

Innovation. Community. Security.