parent
							
								
									09a62cf165
								
							
						
					
					
						commit
						e1abc5e4cb
					
				
					 20 changed files with 260 additions and 6 deletions
				
			
		
							
								
								
									
										32
									
								
								app/components/action-button.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								app/components/action-button.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| import Ember from 'ember'; | ||||
| 
 | ||||
| const { Component } = Ember; | ||||
| 
 | ||||
| export default Component.extend({ | ||||
|   tagName: 'a', | ||||
|   classNames: ['btn'], | ||||
|   classNameBindings: [ | ||||
|     'isDefault:btn-default', | ||||
|     'isPrimary:btn-primary', | ||||
|     'isSuccess:btn-success', | ||||
|     'isInfo:btn-info', | ||||
|     'isWarning:btn-warning', | ||||
|     'isDanger:btn-danger', | ||||
|     'isLink:btn-link', | ||||
|   ], | ||||
| 
 | ||||
|   // ARGS
 | ||||
|   isDefault: false, | ||||
|   isPrimary: false, | ||||
|   isSuccess: false, | ||||
|   isInfo: false, | ||||
|   isWarning: false, | ||||
|   isDanger: false, | ||||
|   isLink: false, | ||||
| 
 | ||||
|   label: 'LABEL', | ||||
| 
 | ||||
|   click() { | ||||
|     this.get('onClick')(); | ||||
|   } | ||||
| }); | ||||
|  | @ -9,7 +9,7 @@ export default Component.extend({ | |||
|   columns: null, | ||||
| 
 | ||||
|   table: null, | ||||
|   init() { | ||||
|   didReceiveAttrs() { | ||||
|     this._super(...arguments); | ||||
|     const table = new Table(this.get('columns'), this.get('model')); | ||||
|     this.set('table', table); | ||||
|  |  | |||
							
								
								
									
										12
									
								
								app/components/collection-create-container.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								app/components/collection-create-container.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| import Ember from 'ember'; | ||||
| import Changeset from 'ember-changeset'; | ||||
| 
 | ||||
| const { Component } = Ember; | ||||
| 
 | ||||
| export default Component.extend({ | ||||
|   init() { | ||||
|     this._super(...arguments); | ||||
|     const model = this.get('model'); | ||||
|     this.set('changeset', new Changeset(model)); | ||||
|   }, | ||||
| }); | ||||
							
								
								
									
										8
									
								
								app/components/crud-form.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								app/components/crud-form.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| import Ember from 'ember'; | ||||
| 
 | ||||
| const { Component } = Ember; | ||||
| 
 | ||||
| export default Component.extend({ | ||||
|   // ARGS
 | ||||
|   changeset: null, | ||||
| }); | ||||
							
								
								
									
										7
									
								
								app/components/form-content.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/components/form-content.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| import Ember from 'ember'; | ||||
| 
 | ||||
| const { Component } = Ember; | ||||
| 
 | ||||
| export default Component.extend({ | ||||
|   tagName: 'form', | ||||
| }); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub
							GitHub