Skip to content

Conversation

manvesh
Copy link
Collaborator

@manvesh manvesh commented Nov 2, 2017

Added fixedWidthLayout as an options parameter.
Allow resizing of columns beyond viewport.

fixed_width_layout

@manvesh manvesh requested a review from andyperlitch November 3, 2017 17:49
scope.$watch('options.fixedWidthLayout', function(newValue, oldValue) {
if (newValue !== oldValue) {
if (angular.isString(scope.classes)) {
if (newValue && scope.classes.indexOf('table-nonfluid') === -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function classed(current ,class, add) {
if(add && current.indexOf(class) === -1) {
current += ‘ ’ + class;
} else {
current = current.replace(class, ‘’);
}
return current;
}

scope.classes = classed(scope.classes, 'table-nonfluid’, newValue)
scope.classes = classed(scope.classes, 'full-width', !newValue)

Allow resizing of columns.
Update typescript definition file.
@manvesh manvesh force-pushed the fixed_width_for_columns_and_table branch from ca77465 to c608d80 Compare November 8, 2017 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants