Documentation
¶
Overview ¶
Package selectallbutton provides a Button element that is used in the sidebar of the web UI, to select all the items matching the current search in the web UI. The button is disabled if the current search is not an explicit predicate search (e.g. "tag:foo"), or a container predicate (ref:<blobref>).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns the button element. It should be used as the entry point, to create the needed React element.
key is the id for when the button is in a list, see https://facebook.github.io/react/docs/lists-and-keys.html
config is the web UI config that was fetched from the server.
cbs is a wrapper around the callback functions required by this component.
Types ¶
type Callbacks ¶
type Callbacks struct { // GetQuery returns the current search session predicate. GetQuery func() string `js:"getQuery"` // SetSelection sets the given selection of blobRefs as the selected permanodes // in the web UI. SetSelection func(map[string]bool) `js:"setSelection"` // contains filtered or unexported fields }
Callbacks defines the callbacks that must be provided when creating a SelectAllBtn instance.
type SelectAllBtnDef ¶
type SelectAllBtnDef struct {
react.ComponentDef
}
SelectAllBtnDef defines a React button to select all items matching the current search query.
func (SelectAllBtnDef) OnClick ¶
func (d SelectAllBtnDef) OnClick(*react.SyntheticMouseEvent)
func (SelectAllBtnDef) Props ¶
func (s SelectAllBtnDef) Props() SelectAllBtnProps
Props is an auto-generated proxy to the current props of SelectAllBtn
func (SelectAllBtnDef) Render ¶
func (d SelectAllBtnDef) Render() react.Element
func (SelectAllBtnDef) ShouldComponentUpdateIntf ¶
type SelectAllBtnElem ¶
func SelectAllBtn ¶
func SelectAllBtn(p SelectAllBtnProps) *SelectAllBtnElem
type SelectAllBtnProps ¶
type SelectAllBtnProps struct {
// contains filtered or unexported fields
}
func (SelectAllBtnProps) EqualsIntf ¶
func (s SelectAllBtnProps) EqualsIntf(val react.Props) bool
func (SelectAllBtnProps) IsProps ¶
func (s SelectAllBtnProps) IsProps()
IsProps is an auto-generated definition so that SelectAllBtnProps implements the myitcv.io/react.Props interface.