Skip to content

Commit 5ded76f

Browse files
committed
Add info to 'Meta' and 'Meta' -> 'Meta Text'
1 parent eed7f30 commit 5ded76f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/default_panels/StyleLayoutPanel.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
HovermodeDropdown,
1616
Flaglist,
1717
Radio,
18+
Info,
1819
} from '../components';
1920
import {HoverColor} from '../components/fields/derived';
2021
import DataSelector from '../components/fields/DataSelector';
@@ -166,8 +167,27 @@ const StyleLayoutPanel = (props, {localize: _}) => (
166167
</HovermodeDropdown>
167168
</PlotlySection>
168169
</PlotlyFold>
169-
<PlotlyFold name={_('Meta')}>
170+
<PlotlyFold name={_('Meta Text')}>
170171
<DataSelector label={_('Custom Data')} attr="meta" />
172+
<Info>
173+
<p>
174+
{_(
175+
'You can refer to the items in this column in any text fields of the editor like so: '
176+
)}
177+
<span
178+
style={{
179+
lineHeight: '20px',
180+
backgroundColor: '#eadef7',
181+
borderRadius: '2px',
182+
fontStyle: 'italic',
183+
}}
184+
>
185+
{'%{meta[0]}'}
186+
</span>
187+
{' .'}
188+
</p>
189+
{_('Note: item count starts at 0.')}
190+
</Info>
171191
</PlotlyFold>
172192
</LayoutPanel>
173193
);

0 commit comments

Comments
 (0)