Title: add :init param to INPUT, SELECT and TEXTAREA tags · Issue #112 · hyperstack-org/hyperstack · GitHub
Open Graph Title: add :init param to INPUT, SELECT and TEXTAREA tags · Issue #112 · hyperstack-org/hyperstack
X Title: add :init param to INPUT, SELECT and TEXTAREA tags · Issue #112 · hyperstack-org/hyperstack
Description: internally will change to defaultValue or defaultChecked INPUT(type: :checkbox, init: true) INPUT(type: :radio, init: true) INPUT(type: :radio, init: false) SELECT(init: 'some value') do ... INPUT(type: :text, init: 'some value') INPUT(i...
Open Graph Description: internally will change to defaultValue or defaultChecked INPUT(type: :checkbox, init: true) INPUT(type: :radio, init: true) INPUT(type: :radio, init: false) SELECT(init: 'some value') do ... INPUT(...
X Description: internally will change to defaultValue or defaultChecked INPUT(type: :checkbox, init: true) INPUT(type: :radio, init: true) INPUT(type: :radio, init: false) SELECT(init: 'some value') do .....
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add :init param to INPUT, SELECT and TEXTAREA tags","articleBody":"internally will change to defaultValue or defaultChecked\r\n\r\n```ruby\r\n INPUT(type: :checkbox, init: true)\r\n INPUT(type: :radio, init: true)\r\n INPUT(type: :radio, init: false)\r\n SELECT(init: 'some value') do ...\r\n INPUT(type: :text, init: 'some value') \r\n INPUT(init: 'some value') # same as type: :text\r\n TEXTAREA(init: 'some value')\r\n```\r\n\r\nTogether with #111 this makes uncontrolled inputs quite a bit more succinct:\r\n```ruby\r\n name = INPUT(type: :text, init: some_model_for_example.name)\r\n BUTTON { 'save' }.on(:click) { some_model_for_example.update name: jq[name].value }\r\n```","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-01-25T22:37:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/112/hyperstack/issues/112"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f025c8c7-5126-3d2a-86a3-4e36a051baa7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7BE:112275:1B3057D:22573DA:6991826C |
| html-safe-nonce | 301e043e682694fa0c0c534542b6a7a6c5ba7d1fcfb8cad439ded7f48644813b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0JFOjExMjI3NToxQjMwNTdEOjIyNTczREE6Njk5MTgyNkMiLCJ2aXNpdG9yX2lkIjoiNTk3OTM0ODM5OTE4MjQxNDQ0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | efaf8d415ce77b14a562861960b52ac960bb0e9636a6aa32725dec2f1ee25187 |
| hovercard-subject-tag | issue:403360273 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hyperstack-org/hyperstack/112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0845695ef76817c3339c50f8939d2b175d5bcab6c7db5705b333b29cf889ed2/hyperstack-org/hyperstack/issues/112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0845695ef76817c3339c50f8939d2b175d5bcab6c7db5705b333b29cf889ed2/hyperstack-org/hyperstack/issues/112 |
| og:image:alt | internally will change to defaultValue or defaultChecked INPUT(type: :checkbox, init: true) INPUT(type: :radio, init: true) INPUT(type: :radio, init: false) SELECT(init: 'some value') do ... INPUT(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width