lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
880 stars 62 forks source link

Daniel/450 readonly disabled for textarea #451

Closed djyotta closed 6 days ago

djyotta commented 1 week ago

Closes #450

Tested with this:

SELECT 'form' AS component, 'post' AS method;
SELECT 'select' AS type
, json('[
  { "label": "a", "value": "a", "selected": true },
  { "label": "b", "value": "b", "selected": false },
  { "label": "c", "value": "b", "selected": true },
]') AS options
, TRUE AS multiple
, TRUE AS dropdown
, TRUE AS readonly
, 's' AS name
;
SELECT 'textarea' AS type
, 'abc' AS value
, 'ta' AS name
, TRUE AS readonly
;
djyotta commented 5 days ago

No problem. I really needed this feature.