Skip to content
Discussion options

You must be logged in to vote

Settings for tools buttons are typically shown in one of two places: tool settings area or popup panel. Below is an example of both.

I believe you are wanting more of the popup panel approach. If so try adding the following to your list of vertical toolbar items.

    const customPopupButton: CustomToolbarItem = {
      isCustom: true,
      id: "test.custom-popup-with-slider",
      itemPriority: 220,
      icon: "icon-arrow-left",
      label: "Slider Test",
      panelContentNode: (<div style={{ width: "300px", height: "38px", padding: "6px", boxSizing: "border-box" }}>
        <Slider min={0} max={100} values={[50]} step={1} />
      </div>),
      groupPriority: 20,
    };

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bsteinbk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants