Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt
hiddentrue

modelview-ribbon-field group - defines new ribbon's group.

...

This module is used for defining new ribbon's group. Please see also articles describing ....describing window definition.

Module's schema is defined in view.xsd.

...

name

type

required

description

plugin resource

string file

yes

Name of the plugin where the model belongs.

model

string

yes

Name of the model where the field will be added.

node value

string

yes

Definition of the field. Please see an article describing defining model using XML.

Path to the file containing new ribbon's group definition.

Example

Please find below an example of plugin defining one field modulenew ribbon's group. Lines 8 -10 contain contains a module which defines new string sampleField in model sampleModel which belongs to the plugin otherPluginribbon's group defined in file src/main/resource/samplePlugin/view/ribbon.xml.

Code Block
languagexml
themeEclipse
linenumberstrue
<?xml version="1.0" encoding="UTF-8"?>
<plugin plugin="samplePlugin" version="1.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://schema.qcadoo.org/plugin" 
    xmlns:modelview="http://schema.qcadoo.org/modules/modelview" 
    xsi:schemaLocation="http://schema.qcadoo.org/plugin http://schema.qcadoo.org/plugin.xsd http://schema.qcadoo.org/modules/modelview http://schema.qcadoo.org/modules/modelview.xsd">

    <model<view:modelview-ribbon-fieldgroup plugin="otherPlugin" model="sampleModel">
        <model:string name="newField" />
    </model:model-field>resource="view/ribbon.xml" />

</plugin>