English
FAQ
About 103 wordsLess than 1 minute
2026-01-09
- How to set dialog alignment, fullscreen and other properties in OpenDialogAction?
UIAction openDialogAction = OpenDialogAction.build{
userData = [:] //Key-value pairs list passed to custom component
title = "title" //Dialog title
width = 123 //Width and height
maxHeight = 123 //Maximum height
type = "FullScreen" //Display mode, currently supports 「ShowCenter (centered dialog)」 and 「FullScreen (fullscreen display)」
component { //Component's apiName
apiName = "comp_yuio8__c"
}
}
return openDialogAction- How to close an OpenDialogAction dialog from custom component
<template>
<div>
<fx-button @click="handleClick">Close Dialog</fx-button>
</div>
</template>
<script>
export default {
methods: {
handleClick() {
// Execute dialog close
this.$emit("action", {
type: "close"
});
}
}
};
</script>