webide_splitter 0.0.1 copy "webide_splitter: ^0.0.1" to clipboard
webide_splitter: ^0.0.1 copied to clipboard

outdatedDart 1 only

A splitter component for Angular Dart

Splitter #

Provides a splitter component for Angular Dart

Demo of splitter.

Example #

@Component(
  selector: 'my-app',
  styles: const [
    '''
    :host {
      display: block;
      width: 100%;
      height: 100%;
    }

    .container {
      width: 50%;
      height: 100%;
      display: flex;
      flex-direction: row;
      position: relative;
      background-color: black;
    }

    .panel {
      height: 100%;
      width: calc((100% - 14px) / 3);
    }
    '''
  ],
  template: r'''
  <div class="container">
    <div class="panel first" style="background-color: red;"></div>
    <splitter></splitter>
    <div class="panel second" style="background-color: blue;"></div>
    <splitter></splitter>
    <div class="panel third" style="background-color: green;"></div>
  </div>
  ''',
  directives: const [materialDirectives, Splitter],
  providers: const [materialProviders],
)
class AppComponent {
}

Usage #

Parent #

Layout #

Parent must use flex layout. The direction of flex layout must be chosen depending on the orientation of the panel layout.

    .container {
      display: flex;
      flex-direction: row;
    }

Size #

Parent must have defined size.

    .container {
      width: 50%;
      height: 100%;
    }

Children/panels #

Children's tran-section size must fill the parent. Care must be taken that splitter's transaction size is deducted.

Children's cross-section size must fill the parent.

    .panel {
      height: 100%;
      width: calc((100% - 14px) / 3);
    }
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A splitter component for Angular Dart

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

angular, angular_components

More

Packages that depend on webide_splitter