Git Product home page Git Product logo

tablelist's Introduction

TableList

Build status

This package gives ASP.Net developers easy way of editing list of items with model binding. This means you can edit elements of your list inline, and all changes will be submited with form. For this purpose Html.TableListFor HTML helper was developed both for ASP.NET Core and ASP.NET MVC.

Usage is very simple. If your Model is a List or you have any List properties in your Model you want to make them editable, you simple need to derive them from TableListItem class and use Html.TableListFor HTML helper on your View. All CRUD operations are supported.

Table of contents

Installation

Library consist of back-end and front-end parts.

Front-end components can be installed one of the following sources:

  • Install with Bower: bower install tablelist-mvc
  • Install with npm: npm install tablelist-mvc
  • Install with Nuget: Install-Package tablelist-mvc
  • Use CDN jsDelivr

Back-end components for ASP.NET Core:

  • Install with Nuget: Install-Package TableList.Mvc.Core

Back-end components for ASP.NET MVC:

  • Install with Nuget: Install-Package TableList.Mvc

Also you can download the latest release:

Basic Usage

First make sure you have linked css and js files: tablelist-mvc.css and tablelist-mvc.js or minimized versions. We use JQuery so link to jquery file must be before link of tablelist-mvc.js. Also if you have some validation attributes, validation js files needed to be linked.

Your page may look like this:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   
    <link rel="stylesheet" href="tablelist-mvc.css" />
</head>
<body>
    ...

    <script src="jquery.js"></script>
    <script src="jquery.validate.js"></script>
    <script src="jquery.validate.unobtrusive.js"></script>
    <script src="~/js/tablelist-mvc.js"></script>
</body>
</html>

To be continued...

License

TableList released under the MIT license. Feel free to use it in personal and commercial projects.

tablelist's People

Contributors

bantikyan avatar vahekh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vahekh hasmik7 bubdm

tablelist's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.