Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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_