mt-ag / apex-fancytree-plugin

A region plug-in for Oracle APEX that displays data in a tree structure
MIT License
7 stars 4 forks source link

Update to Table Functionality #2 #4

Open shaunmauer opened 6 years ago

shaunmauer commented 6 years ago

Hi

Is it possible to allow HTML code when using the table functionality. It is currently stripping the HTML code and displaying it as plaintext.

image

For a temporary workaround by editing the plugin and replacing $tdList.eq(i+1).text(customData[Object.keys(customData)[i-1]]); with $tdList.eq(i+1).html(customData[Object.keys(customData)[i-1]]); on line 283

Maybe there could be some sort or attribute that can be used to switch it between text and html??

mt-ag commented 6 years ago

Hey Shaun, I'll test it out a bit and make it an option in the settings of the plug-in if it works correctly. During development I wanted the tree to just display any HTML as text to avoid code injection, but making it an option like this seems to be a great idea! I'll post another comment here when it's added.

Nidhi515 commented 4 years ago

Hello, I have done it by calling an event triggered after rendering columns and in that custom eent handle my case as have to do it for few specific columns. Only thing i found is i have two input tags in a columns where it failed with plsql and numeric error though i have handled it another way but would be nice if you have something on that. Regards Nidhi