-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lt-body): Preliminary Vertical collection integration (#483)
* Setup sample app * Modifying rendering when using native scrollbar * Working state with dynamic height * Vertical Collection with fixed width columns So we don't have to handle resize events for now * Update README * Fix ESLint * eslint * Fixup CSS alignment issues * Fixup deps * Update to vertical-collection beta.9 * Updated v-c usage to reflect new APIs Fix alignment issue of header not respecting the padding of it's container
- Loading branch information
1 parent
0edf5d0
commit 7feb748
Showing
14 changed files
with
379 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// BEGIN-SNIPPET occluded-table | ||
import Component from '@ember/component'; | ||
import TableCommon from '../../mixins/table-common'; | ||
import { computed } from '@ember/object'; | ||
|
||
export default Component.extend(TableCommon, { | ||
limit: 100, | ||
columns: computed(function() { | ||
return [{ | ||
label: 'Avatar', | ||
valuePath: 'avatar', | ||
width: '60px', | ||
sortable: false, | ||
cellComponent: 'user-avatar' | ||
}, { | ||
label: 'First Name', | ||
valuePath: 'firstName', | ||
width: '150px' | ||
}, { | ||
label: 'Last Name', | ||
valuePath: 'lastName', | ||
width: '150px' | ||
}, { | ||
label: 'Address', | ||
valuePath: 'address', | ||
width: '150px' | ||
}, { | ||
label: 'State', | ||
valuePath: 'state', | ||
width: '100px' | ||
}, { | ||
label: 'Country', | ||
valuePath: 'country', | ||
width: '100px' | ||
}]; | ||
}), | ||
|
||
init() { | ||
this._super(...arguments); | ||
this.set('page', 1); | ||
this.get('fetchRecords').perform(); | ||
} | ||
}); | ||
// END-SNIPPET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from '../table-route'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,3 +136,10 @@ tfoot { | |
} | ||
} | ||
} | ||
|
||
|
||
.ember-light-table.occlusion { | ||
.lt-row td { | ||
vertical-align: middle; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.