Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 914 Bytes

step-1-creating-a-rule-control-eefe8c6.md

File metadata and controls

34 lines (20 loc) · 914 Bytes

Step 1: Creating a Rule Control

In this step, we embed rule builder of type TextRule into an application view.

You can view and download all files at Rule Builder - Text Rule.

<mvc:View
        xmlns:mvc="sap.ui.core.mvc"
        displayBlock="true"
        xmlns="sap.m"
        controllerName="sap.rules.ui.sample.TextRule.Page"
        viewName="sap.rules.ui.sample.TextRule.Page.view"
        xmlns:rules="sap.rules.ui">
    <Button id="editButton" press="handleEditButton" text="Edit"/>
    <rules:RuleBuilder id="ruleBuilder" types="TextRule" editable="false"/>
</mvc:View>