Skip to content

Instantly share code, notes, and snippets.

Vignesh Raja vigneshrajarr

Block or report user

Report or block vigneshrajarr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vigneshrajarr
vigneshrajarr / ComboBox.html
Last active May 24, 2019
Creating a combo box with select and input text box elements besides one another - for StackOverflow question - https://stackoverflow.com/questions/28910272/html-and-css-dropdown-box-with-textbox-beside-it
View ComboBox.html
<html>
<head>
<title>Select and Input box Combo from Scratch</title>
<!--
A combo of select and input box built from scratch. Tested in Chrome, Firefox, Safari.
-->
<style>
*
{
box-sizing: border-box;
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
charts: function(){
return [{id:1,values:[{id:1,values:[{id:1,isdisable:false}]}],isdisable:false},
{id:2,values:[{id:1,values:[{id:1,isdisable:false}]}],isdisable:false}]
}.property(),
obser:function(){
return "12";
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
isfinished: false,
actions:{
schedule:function(){
console.log(this.get("isfinished"));
var self = this;
var runone = Ember.run.scheduleOnce("afterRender", function(){
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions:{
schedule:function(){
var runone = Ember.run.scheduleOnce("afterRender", function(){
console.log("testing");
});
console.log(runone.)
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
usered: false,
actions:{
changeColor : function(){
this.toggleProperty("usered");
}
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
headings:function(){
return Object.keys(this.get('information'));
}.property("information"),
information: function(){
return [["Row1-Col1-1","Row1-Col2-1","Row1-Col3-1","Row1-Col4-1","Row1-Col5-1"],
["Row2-Col1-2","Row2-Col2-2","Row2-Col3-2","Row2-Col4-2","Row2-Col5-2"],
["Row3-Col1-3","Row3-Col2-3","Row3-Col3-3","Row3-Col4-3","Row3-Col5-3"],
@vigneshrajarr
vigneshrajarr / controllers.application.js
Last active Jul 19, 2018
Ember.set and Ember.setProperties
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
name:"Vignesh",
place:"Nmkl",
handleName1 : function(){
this.set("place","Chennai");
}.observes("name"),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
data:function(){
return [{
"marks":90,
"totalmarks":100,
"percentage":90,
"status":"pass"
},
@vigneshrajarr
vigneshrajarr / components.edit-details.js
Created Jun 12, 2018
StackOverFlow - ember rollback attributes when user cancel the edit action
View components.edit-details.js
import Ember from 'ember';
export default Ember.Component.extend({
actions:{
saveDetails : function(){
this.sendAction("saveModel");
},
cancelEdit:function(){
this.sendAction("cancelModel");
}
@vigneshrajarr
vigneshrajarr / components.custom-form.js
Last active May 21, 2018
StackOverFlow - Clearing custom forms
View components.custom-form.js
import Ember from 'ember';
export default Ember.Component.extend({
fields:"",
isaddnewcustomproperty:false,
actions:
{
toggleProperty : function(property)
{
this.toggleProperty(property);
You can’t perform that action at this time.