Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lofcz/editstrap2
Project name: Lofotrap, basically a FREE and WORKING version of the original Editstrap
https://github.com/lofcz/editstrap2
anyway bootstrap4 capitalism editstrap simplex-rpg-engine sucks
Last synced: about 7 hours ago
JSON representation
Project name: Lofotrap, basically a FREE and WORKING version of the original Editstrap
- Host: GitHub
- URL: https://github.com/lofcz/editstrap2
- Owner: lofcz
- Created: 2018-03-22T20:59:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T16:11:21.000Z (almost 7 years ago)
- Last Synced: 2024-12-25T05:13:06.463Z (9 days ago)
- Topics: anyway, bootstrap4, capitalism, editstrap, simplex-rpg-engine, sucks
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Editstrap2
FREE and WORKING version of the original Editstrap## Setup:
**Asp / AspMvc .NET:**
```html
```**Pure html:**
```html
```**Other libs needed:**
- Bootstrap4 (+ jQuery)
- Font awesome**Sample working in-edit element:**
```javascript$(function() {
$("#toEdit").editstrap({
type: 'text',
validateClass:'success',
saveOptions:'block',
title: 'Upravit',
editClasses:'fas fa-check',
emptyField: 'No data',
displaySuccess:function(editable,value,text){
var element = editable.parent().parent().find(".result-message");
element.html("Synced");
element.addClass('edit-has-succes');
element.show().delay(1000).fadeOut();
}
});
});```
**Note: Due to the original author being a prick unable to write proper docs, this is the way to sync to server:**
```javascript
$(function() {
$("#nameData").editstrap({
type: 'text',
validateClass:'success',
saveOptions:'block',
title: 'Upravit',
editClasses: 'fas fa-check',
url: '@Url.Action("ACTION_REPLACE", "CONTROLLER_REPLACE")',
emptyField: 'No data',
displaySuccess:function(editable,value,text){
var element = editable.parent().parent().find(".result-message");
element.html("Úspěšně synchronizováno");
element.addClass('edit-has-succes animated bounceOutLeft');
element.show().delay(1000).fadeOut();}
});
});
``````csharp
[HttpPost]
public JsonResult ACTION_REPLACE(string value)
{
// value param contains string needed
return Json(new { });
}
```## Changes VS the original Editstrap:
- Fully supports Bootstrap4
- Missing glyphicons are now rendering correctly
- Version 3.3.1 -> Latest public version of the original lib is 3.2.0 -> Includes some fixes and performace 'improvements'_Support the original author and buy useless version of this for 15$ only: https://editstrap.com/index.html_