@saltcorn/builder 0.8.3-beta.0 → 0.8.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/builder",
3
- "version": "0.8.3-beta.0",
3
+ "version": "0.8.3-beta.2",
4
4
  "description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
@@ -49,6 +49,7 @@ const DropDownFilterSettings = () => {
49
49
  name,
50
50
  block,
51
51
  neutral_label,
52
+ label_formula,
52
53
  full_width,
53
54
  where,
54
55
  } = useNode((node) => ({
@@ -56,6 +57,7 @@ const DropDownFilterSettings = () => {
56
57
  block: node.data.props.block,
57
58
  neutral_label: node.data.props.neutral_label,
58
59
  full_width: node.data.props.full_width,
60
+ label_formula: node.data.props.label_formula,
59
61
  where: node.data.props.where,
60
62
  }));
61
63
  const options = useContext(optionsCtx);
@@ -111,6 +113,21 @@ const DropDownFilterSettings = () => {
111
113
  />
112
114
  </td>
113
115
  </tr>
116
+ <tr>
117
+ <td>
118
+ <label>Label formula</label>
119
+ </td>
120
+ <td>
121
+ <input
122
+ value={label_formula}
123
+ className="form-control"
124
+ onChange={setAProp("label_formula")}
125
+ />
126
+ <i>
127
+ In scope: <code>{name}</code>
128
+ </i>
129
+ </td>
130
+ </tr>
114
131
  <tr>
115
132
  <td></td>
116
133
  <td>
@@ -150,6 +167,7 @@ DropDownFilter.craft = {
150
167
  { name: "name", segment_name: "field_name", column_name: "field_name" },
151
168
  "full_width",
152
169
  "neutral_label",
170
+ "label_formula",
153
171
  "where",
154
172
  "block",
155
173
  ],