mergPopSheet |
Type | function |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | mergPopSheet([<pTitle>], [<pCancel>], [<pDestructive>], [<pOther>], [<pStyle>], [<pPopoverRect>])
|
Associations | mergpop |
Summary | Presents an action sheet or popover on iPad
|
Introduced | 8.0 |
OS | ios |
Platforms | mobile |
Parameters | Name | Type | Description |
---|
pTitle | | (optional with "" default) the title to display.
|
pCancel | | (optional with "" default) the cancel button label if
required. This button is displayed in grey at the bottom of the action
sheet. Popovers don't display a cancel button as the user cancels by
touching away from the popover.
|
pDestructive | | (optional with "" default) this button is displayed in
red at the top of the action sheet or popover.
|
pOther | | (optional with "" default) comma delimited list of button
labels.
|
pStyle | | (optional with "default" default) one of:
- default
- black opaque
- black translucent
|
pPopoverRect | | (optional with "" default) a rect on screen which is used
as the location the popover is presented from. This defaults to the rect
of the target control.
|
|
Example | switch mergPopSheet("","Cancel","Delete","Save","black translucent")
case "Delete"
deleteRecord
break
case "Save"
updateRecord
break
end switch
|
Values | Name | Type | Description |
---|
return | | one of:
- One of the button labels (they should be unique).
- On iPad if the user cancels by touching elsewhere the external will
return Cancel. To handle localising the cancel button label in an
action sheet you should test the result for Cancel or the value of
your cancel button title.
|
|
Description | Presents an action sheet or popover on iPad
|
Tags | externals |