Skip to content

Fixed width support for columns and table. #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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