Action sheet content parameter

I am trying to make an action sheet with custom html and in the docs i see this should be possible via the “content” parameter. “Full Action Sheet HTML content string. Can be useful if you want to create Action Sheet element with custom HTML” Is there an example anywhere of how to put this content string together? I have tried and get no results.

hi

var tst = app.actions.create({
content: `
<div class="actions-modal">
  <div class="actions-group">
    <div class="actions-label">Do something</div>
    <div class="actions-button actions-button-bold">
      <div class="actions-button-text">Button1</div>
    </div>
    <div class="actions-button">
      <div class="actions-button-text">Button2</div>
    </div>
  </div>
  <div class="actions-group">
    <div class="actions-button color-red">

      <div class="actions-button-text">Cancel</div>
    </div>
  </div>
</div>
`
})
...

tst.open()
2 Likes