Can a TEXTAREA for plugin be provided?

thondeboer
thondeboer Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Registered Posts: 8 ✭✭✭✭

Is there a way to change the default SIZE for a TEXTAREA component in a plugin?

The default size is rather small and while it can be manually enlarged, it would be nice to be able to set a different size (width x height).

Answers

  • fchataigner2
    fchataigner2 Dataiker Posts: 355 Dataiker

    Hi,

    the size can't be controlled. Note that you can have a `codeMirrorDialect` field in your parameter definition in the json, to pass one of codemirror's language modes: this'll make the textarea a codemirror editor, whose size might be better for you.

  • thondeboer
    thondeboer Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Registered Posts: 8 ✭✭✭✭

    Tried the codeMirrorDialect and while it does look like it woudl be something useful, since it provides nice syntax coloing etc., the view is a little "off" and was wondering if there are any ways to modify the look and feel...

    I added this line to the paramter that is the textarea

    ...

    "codeMirrorDialect":"text/x-sql"

    ...

    But it now looks like the attachement...

    Any ideas how to correct this?

Setup Info
    Tags
      Help me…