ericrsmith35 / DatatableV2

28 stars 24 forks source link

Add rich text support #17

Closed datapharmer closed 4 years ago

datapharmer commented 4 years ago

Adds support for rich text in datatable instead of only plain text.

ericrsmith35 commented 4 years ago

@datapharmer Can you point me to an org where you have this implemented. I think this is going to be a nice addition and possible a good template for adding other custom column types.

datapharmer commented 4 years ago

Here is an example from a current project:

formula field generates url with pretty name:

Capture2

and rich text properly renders it:

Capture

I hope that helps!

ericrsmith35 commented 4 years ago

Thank you. Besides Formulas using HYPERLINK or IMAGE, can you think of some other use cases? Is there a way to generate HTML formatted values in a formula field?

Eric

On Tue, Aug 11, 2020 at 11:49 AM datapharmer notifications@github.com wrote:

Here is an example from a current project:

formula field generates url with pretty name:

[image: Capture2] https://user-images.githubusercontent.com/6548767/89918705-630d9c80-dbc8-11ea-960b-28180762b1a0.PNG

and rich text properly renders it:

[image: Capture] https://user-images.githubusercontent.com/6548767/89918690-5c7f2500-dbc8-11ea-8a65-7d2978068a09.PNG

I hope that helps!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-672029586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX2NDGPBATEERO6YFJLSAFR6XANCNFSM4PZ756YQ .

datapharmer commented 4 years ago

Yes you can embed some html thisnway. In addition to formulas you can use an actual richtext type field to display formatted text and data as supported by the editor where converting to text would show the escaped data.

On Fri, Sep 18, 2020, 6:52 PM Eric Smith notifications@github.com wrote:

Thank you. Besides Formulas using HYPERLINK or IMAGE, can you think of some other use cases? Is there a way to generate HTML formatted values in a formula field?

Eric

On Tue, Aug 11, 2020 at 11:49 AM datapharmer notifications@github.com wrote:

Here is an example from a current project:

formula field generates url with pretty name:

[image: Capture2] < https://user-images.githubusercontent.com/6548767/89918705-630d9c80-dbc8-11ea-960b-28180762b1a0.PNG

and rich text properly renders it:

[image: Capture] < https://user-images.githubusercontent.com/6548767/89918690-5c7f2500-dbc8-11ea-8a65-7d2978068a09.PNG

I hope that helps!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-672029586 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF4UHX2NDGPBATEERO6YFJLSAFR6XANCNFSM4PZ756YQ

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-695118870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABR62H2NUQFTG25RNXTHPTDSGPQBRANCNFSM4PZ756YQ .

ericrsmith35 commented 4 years ago

I've incorporated your updates into the current version of my code for testing. I need to get it posted online. I did find another great use case by putting the IMAGE function inside of the HYPERLINK function in a formula field.

Eric

On Sat, Sep 19, 2020 at 8:30 PM datapharmer notifications@github.com wrote:

Yes you can embed some html thisnway. In addition to formulas you can use an actual richtext type field to display formatted text and data as supported by the editor where converting to text would show the escaped data.

On Fri, Sep 18, 2020, 6:52 PM Eric Smith notifications@github.com wrote:

Thank you. Besides Formulas using HYPERLINK or IMAGE, can you think of some other use cases? Is there a way to generate HTML formatted values in a formula field?

Eric

On Tue, Aug 11, 2020 at 11:49 AM datapharmer notifications@github.com wrote:

Here is an example from a current project:

formula field generates url with pretty name:

[image: Capture2] <

https://user-images.githubusercontent.com/6548767/89918705-630d9c80-dbc8-11ea-960b-28180762b1a0.PNG

and rich text properly renders it:

[image: Capture] <

https://user-images.githubusercontent.com/6548767/89918690-5c7f2500-dbc8-11ea-8a65-7d2978068a09.PNG

I hope that helps!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-672029586

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AF4UHX2NDGPBATEERO6YFJLSAFR6XANCNFSM4PZ756YQ

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-695118870 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABR62H2NUQFTG25RNXTHPTDSGPQBRANCNFSM4PZ756YQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ericrsmith35/DatatableV2/pull/17#issuecomment-695370988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX55RBX3RZQ4DN7UCXTSGVEJBANCNFSM4PZ756YQ .

ericrsmith35 commented 4 years ago

Included in PR#30.