I want to customize the title of the column. How can I use HTML code for the title? For example, I want to add a column title that includes a subscript letter, using HTML code like this:
<p>E<sub>a</sub></p></>
I want to customize the title of the column. How can I use HTML code for the title? For example, I want to add a column title that includes a subscript letter, using HTML code like this:
<p>E<sub>a</sub></p></>
Could you clarify which column you’re referring to?
Just for the title of the column. I edited my description more clearly to understand my question
.
If you mean the title on the application screen, use the richtext component. If you have css, you must write it inline.
The title or text component are their own component with their own configuration options.
If you want to be a little more creative by using markdown or HTML, try using the rich text component.
const Columns = [
{
title: 'E_{a}',
id: 'Ea',
required: false,
type: 'String',
},... ]
So this is my code to define a column, and I want the title Ea with a subscript letter ‘a’. So I put the HTML code in the title and has error like this:
const Columns = [
{
title: (`<><p>E<sub>a</sub></p></>)`,
id: 'Ea',
required: false,
type: 'String',
},... ]
This is what I want
Is your first image a table from the data editor, or is it a table you created yourself?
If your problem is as simple as this, just use the Unicode character “Eₐ”.
const Columns = [
{
title: 'Eₐ',
id: 'Ea',
required: false,
type: 'String',
},
];
Are you using the Glide Tables as a separate product, or are you building a Glide App? It looks to me that it’s likely the previous.
Yes, I use a data editor.
For some letters, Unicode does not support the subscript, so I have to use the HTML code to subscript the letters.
Yes, I use the Glide Tables as a separate product.
This forum is mainly for Glide Apps, a separate product from Glide. I would suggest reaching out to the devs in their Discord for “Glide Data Grid”.
Thank you!
Always happy to help a fellow compatriot
What product is this, Thinh?
Free and open source. Thanks