{"id":24081621,"url":"https://github.com/ronnytorresmtz/text-inline","last_synced_at":"2026-03-04T11:03:27.548Z","repository":{"id":57047452,"uuid":"284513809","full_name":"ronnytorresmtz/text-inline","owner":"ronnytorresmtz","description":"Laravel Nova Text Inline Package","archived":false,"fork":false,"pushed_at":"2021-01-01T19:53:27.000Z","size":641,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T20:37:37.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronnytorresmtz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-02T17:56:56.000Z","updated_at":"2021-01-01T19:52:36.000Z","dependencies_parsed_at":"2022-08-23T17:50:20.778Z","dependency_job_id":null,"html_url":"https://github.com/ronnytorresmtz/text-inline","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/ronnytorresmtz/text-inline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnytorresmtz%2Ftext-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnytorresmtz%2Ftext-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnytorresmtz%2Ftext-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnytorresmtz%2Ftext-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronnytorresmtz","download_url":"https://codeload.github.com/ronnytorresmtz/text-inline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronnytorresmtz%2Ftext-inline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078418,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-09T23:25:04.629Z","updated_at":"2026-03-04T11:03:27.520Z","avatar_url":"https://github.com/ronnytorresmtz.png","language":"Vue","readme":"# Laravel Nova Text Inline Field with One Click\n\nThis package allow you to edit a text field in the index page with `one click`\n\n## Installation\n\n        composer require ronnytorresmtz/text-inline\n\n## Usage\n\n### Make it editable\n\n```php\nuse Ronnytorresmtz\\TextInline\\TextInline;\n\npublic function fields()\n{\n    return [\n        TextInline::make('Name')\n            -\u003einlineOnIndex(),\n    ];\n}\n```\n\nTo edit the text field you need to click it on, and base on the `saveOn` event defined the text field value will be store in the database.\n\nIf you press the `Esc key` the field text will return to a not editable mode or if the text field lost the focus.\n\nThis method also accepts a closure with the current request if you want to make it editable dynamically:\n\n```php\npublic function fields()\n{\n    return [\n        InlineText::make('Name')\n            -\u003einlineOnIndex(function (NovaRequest $request) {\n                return $request-\u003euser()-\u003eisAdmin();\n            }),\n    ];\n}\n```\n\n### Updating field value\n\nThe default trigger to save the value is by pressing the `Enter` key (`keyup.enter`). If you wish to use a different event trigger to update the value you can use the `saveOn()` method that accepts an argument corresponding to a javascript event:\n\n```php\npublic function fields()\n{\n    return [\n        InlineText::make('Name')\n            -\u003einlineOnIndex()\n            -\u003esaveOn('blur'),\n    ];\n}\n```\n\n### Key event modifiers\n\nYou can also specify the key event modifier:\n\n```php\npublic function fields()\n{\n    return [\n        InlineText::make('Name')\n            -\u003einlineOnIndex()\n            -\u003esaveOn('keyup.shift'),\n    ];\n}\n```\n\n### Resoure Example\n![Image](textInline_image.PNG)\n\n## Credits\n\nThe credit for this package belongs to `PDMFC` I just add the clickable functionality to enable the edit mode and add one listener for blur event to enable the readonly mode. Also I eliminate the refreshTable method.\n\nThis package was based on the package [pdmfc/nova-inline-text](https://github.com/pdmfc/nova-inline-text/) \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnytorresmtz%2Ftext-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronnytorresmtz%2Ftext-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronnytorresmtz%2Ftext-inline/lists"}