Skip to content

Toolbar: Add input bindings for updateActionButton and updateSelectInput #1266

@elnelson575

Description

@elnelson575

Current usage of the input bindings doesn't permit updateActionButton to function properly and does not work at all for updateSelectInput.

We should fix this so these work well in toolbars.
Start with the button
Model the bindings on taskInputbutton:
taskButton.ts
need a find scope input binding (find in taskButton.ts)
getValue to get the value that needs to be sent to shiny
subscribe is where register eventListeners,
call 'callback' whenever the value changes
receiveMessage is what takes updates from shiny and reflects them on the UI (messages sent from session$sendInputMessage)

Decision Log:

  • Do we need processDeps called on the inputs here like shiny?
  • Should we add something like fa-fw (fixed-width) class (a Font Awesome utility to keep the width the same even when the icon size changes) to deal with updating icons and keeping button size the same?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions