{"id":17770446,"url":"https://github.com/gampleman/laplace","last_synced_at":"2025-04-01T14:25:38.357Z","repository":{"id":11970159,"uuid":"14542910","full_name":"gampleman/Laplace","owner":"gampleman","description":"A simple in-place editor","archived":false,"fork":false,"pushed_at":"2013-11-20T14:47:01.000Z","size":168,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T09:13:58.526Z","etag":null,"topics":["annotated-source","in-place-editor"],"latest_commit_sha":null,"homepage":"http://code.gampleman.eu/Laplace/","language":"JavaScript","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/gampleman.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":"2013-11-20T01:07:39.000Z","updated_at":"2019-02-14T04:36:47.000Z","dependencies_parsed_at":"2022-09-13T06:51:02.105Z","dependency_job_id":null,"html_url":"https://github.com/gampleman/Laplace","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2FLaplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2FLaplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2FLaplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gampleman%2FLaplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gampleman","download_url":"https://codeload.github.com/gampleman/Laplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246653035,"owners_count":20812232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["annotated-source","in-place-editor"],"created_at":"2024-10-26T21:23:05.389Z","updated_at":"2025-04-01T14:25:38.333Z","avatar_url":"https://github.com/gampleman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laplace\n=======\n\n\nLaplace is meant to be a simple, but reusable in-place editor built in CoffeeScript.\n\nIt is controlled by a simple data api inspired by Bootstrap.\n\nYou can see a [quick demo](http://code.gampleman.eu/Laplace/) or read the [annotated source code](http://code.gampleman.eu/Laplace/docs/laplace.html).\n\n### Usage\n\nTo make something editable, first give it the class `laplace`. Then set several data attributes either on the element itself, or on a parent element, or in the configuration object (in order of prefference).\n\n`url` - Where to post updated data. \n\n`method` - Defaults to `POST`.\n\n`name` - Use as the forms name value.\n\n`type` - What kind of input is this supposed to be. Supports all values of the `type` attribute for the `input` tag (except file), plus the special values of `textarea`, `select` and `radio-buttons`. `select` and `radio-buttons` also require the following to be set:\n\n`values` - The possible values as a JSON array. Either `[\"value\", \"value\", ...]` or `[[\"Label\", \"Value\"], [\"Label\", \"Value\"]]` syntax is supported.\n\n`edit-label` - The text to use for displaying the edit button. Defaults to `\"Edit\"`.\n\n`save-label` - The text to use for displaying the save button. Defaults to `\"Save\"`.\n\n`cancel-label` - The text to use for displaying the cancel button. Defaults to `\"Cancel\"`.\n\n### Integration\n\nYour webapp will be sent the updated value as if the user was editing a regular form and should return a response with the 200 status code and whatever the field should be displaying.\n\n### License\n\nCopyright 2013 by Jakub Hampl. MIT Licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgampleman%2Flaplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgampleman%2Flaplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgampleman%2Flaplace/lists"}