Giter Club home page Giter Club logo

edittable's People

Contributors

micc83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edittable's Issues

Edittable Cant Auto Complete

Hi Admin
I have search and i see your github. I want to question: how to use this plugin but can auto complete on cell of column as excel

NPM support

Any chance you could upload this to the npm registry, or maybe add a package.json so we could npm install micc83/editTable from the github repo directly?

Thanks

set value to custom input not working

HI
i was using a custom input of type text because in some places i need a placeholder in input and at some not so i created the custom input and when i try to set the value of that custom input[type="text"] then it is not setting the value just showing the placeholder in the input. Here is the code
$("#example").editTable({
field_templates: {
'select1' : {
html: selectFunction(),
getValue: function (input) {
return $(input).val();
},
setValue: function (input, value) {
var select = $(input);
select.find('option').filter(function() {
return $(this).val() == value;
}).attr('selected', true);
return select;
}
},
'select2' : {
html: selectFunction(),
getValue: function (input) {
return $(input).val();
},
setValue: function (input, value) {
var select = $(input);
select.find('option').filter(function() {
return $(this).val() == value;
}).attr('selected', true);
return select;
}
},
'select3' : {
html: selectFunction(),
getValue: function (input) {
return $(input).val();
},
setValue: function (input, value) {
var select = $(input);
select.find('option').filter(function() {
return $(this).val() == value;
}).attr('selected', true);
return select;
}
},
'placeHolder' : {

		html: '<input placeholder="Empty" type="text" />',     // Input type html

		// How to get the value from the custom input
		getValue: function (input) {
			return $(input).val();
		},

		// How to set the value of the custom input
		setValue: function (input, value) {
			console.log("The input value is="+value);
			if ( (value =='') || (typeof value =='undefined') ){
				return $(input).val('');
			}
			return $(input).text(value);
		}
	},					
	'idField' : {
			
		html: '<textarea style="display:none;"/>',     // Input type html

		// How to get the value from the custom input
		getValue: function (input) {
			return $(input).val();
		},

		// How to set the value of the custom input
		setValue: function (input, value) {
			if ( value ){
				return $(input).text(value);
			}
			return $(input).text('-1');
		}
	}					
},				
row_template: ['select1', 'select2','select3','placeHolder','idField'],				
headerCols: [
	'Filter On',
	'Data Type',
	'Operation',
	'Value'
]

});

License?

Hi @micc83 great libary! I would like to integrate it but there is no license so I would not be able to include it due to copyright (the target-project is MIT). Is that by-design or are you open to the idea of adding a license?

Need Help Regarding Autocomplete Feature

Hi ,
I want to implement the autocomplete feature in the table. would it be possible ?
I am trying to implement the jquery autocomplete.I am trying to implement like this

<script>
          $(document).ready(function(){
var availableTags = [
    "ActionScript",
    "AppleScript",
    "Asp",
    "BASIC",
    "C",
    "C++",
    "Clojure",
    "COBOL",
    "ColdFusion",
    "Erlang",
    "Fortran",
    "Groovy",
    "Haskell",
    "Java",
    "JavaScript",
    "Lisp",
    "Perl",
    "PHP",
    "Python",
    "Ruby",
    "Scala",
    "Scheme"
];
alert('ok');
$( "#autocomplete" ).autocomplete({
    source: availableTags
});
});
</script>

and adding Id in jauery-editable.js on line 46 is like

'<td><input type="text" id="tags" value="' + content.toString().replace(/"/g, "&quot;") + '" /></td>'

But this is not reflecting on Dom .Please help me in this .Efforts will be very much appreciated.

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.