Skip to content

Checkbox State #3

Open
Open
@uipoet

Description

@uipoet

Need to default check a checkbox via configuration. Would be great to name the checkboxes for passing to the callback as well.

dialog({
  title: 'A Title',
  msg: 'some message',
  timeout: 10,
  checkboxes: [
    {
      label: 'first box',
      name: 'firstBox',
      value: true,
    },
    {
      label: 'second box'
      name: 'secondBox',
      value: false,
    }
  ]
}, function (error, button, checkboxes) {
    // do stuff with the result.
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions