Skip to content
Snippets Groups Projects
  • rhenck's avatar
    d6d223dd
    Refactor likert layout and add first column ratio prop · d6d223dd
    rhenck authored
    - Images now scale up and down depending on the available space.
    - The new property controls the first (column) size parameter for the 
    grid. The others are fixed at 1. Decimal values are allowed for 
    fine-tuned control.
    This prop is passed on to the child likert-row component. It uses the 
    same grid and needs this info for proper alignment with the column 
    headers.
    - Remove unnecessary div in likert
    d6d223dd
    History
    Refactor likert layout and add first column ratio prop
    rhenck authored
    - Images now scale up and down depending on the available space.
    - The new property controls the first (column) size parameter for the 
    grid. The others are fixed at 1. Decimal values are allowed for 
    fine-tuned control.
    This prop is passed on to the child likert-row component. It uses the 
    same grid and needs this info for proper alignment with the column 
    headers.
    - Remove unnecessary div in likert
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
likert-element-row.ts 409 B
import { InputElement, UIElement } from '../uI-element';
import { LikertRow } from '../../interfaces/UIElementInterfaces';

export class LikertElementRow extends InputElement implements LikertRow {
  text: string = '';
  columnCount: number = 0;
  firstColumnSizeRatio: number = 5;

  constructor(serializedElement: UIElement) {
    super(serializedElement);
    Object.assign(this, serializedElement);
  }
}