mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-12 04:11:55 +00:00
.github
.vscode
app
build
docs
extras
patches
scripts
snap
tabby-community-color-schemes
tabby-core
src
api
components
appRoot.component.pug
appRoot.component.scss
appRoot.component.ts
base.component.ts
baseTab.component.ts
checkbox.component.ts
promptModal.component.pug
promptModal.component.ts
renameTabModal.component.pug
renameTabModal.component.ts
safeModeModal.component.pug
safeModeModal.component.ts
selectorModal.component.pug
selectorModal.component.scss
selectorModal.component.ts
selfPositioning.component.ts
splitTab.component.scss
splitTab.component.ts
splitTabDropZone.component.scss
splitTabDropZone.component.ts
splitTabPaneLabel.component.scss
splitTabPaneLabel.component.ts
splitTabSpanner.component.scss
splitTabSpanner.component.ts
startPage.component.pug
startPage.component.scss
startPage.component.ts
tabBody.component.scss
tabBody.component.ts
tabBody.deep.component.css
tabHeader.component.pug
tabHeader.component.scss
tabHeader.component.ts
titleBar.component.pug
titleBar.component.scss
titleBar.component.ts
toggle.component.scss
toggle.component.ts
transfersMenu.component.pug
transfersMenu.component.scss
transfersMenu.component.ts
unlockVaultModal.component.pug
unlockVaultModal.component.ts
welcomeTab.component.pug
welcomeTab.component.scss
welcomeTab.component.ts
windowControls.component.pug
windowControls.component.scss
windowControls.component.ts
directives
icons
services
buttonProvider.ts
cli.ts
config.ts
configDefaults.linux.yaml
configDefaults.macos.yaml
configDefaults.web.yaml
configDefaults.windows.yaml
configDefaults.yaml
hotkeys.ts
icons.json
index.ts
profiles.ts
tabContextMenu.ts
theme.compact.scss
theme.paper.scss
theme.scss
theme.ts
theme.vars.scss
utils.ts
README.md
package.json
tsconfig.json
tsconfig.typings.json
webpack.config.js
yarn.lock
tabby-electron
tabby-local
tabby-plugin-manager
tabby-serial
tabby-settings
tabby-ssh
tabby-telnet
tabby-terminal
tabby-uac
tabby-web
tabby-web-demo
web
.all-contributorsrc
.eslintrc.yml
.gitignore
.mergify.yml
.pug-lintrc.js
CODE_OF_CONDUCT.md
HACKING.md
LICENSE
README.md
appveyor.yml
electron-builder.yml
package.json
tsconfig.json
typedoc.js
webpack.config.js
webpack.plugin.config.js
yarn.lock
21 lines
633 B
TypeScript
21 lines
633 B
TypeScript
import { Component } from '@angular/core'
|
|
import { NG_VALUE_ACCESSOR } from '@angular/forms'
|
|
import { CheckboxComponent } from './checkbox.component'
|
|
|
|
/** @hidden */
|
|
@Component({
|
|
selector: 'toggle',
|
|
template: `
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" [(ngModel)]='model'>
|
|
<label class="custom-control-label"></label>
|
|
</div>
|
|
`,
|
|
styles: [require('./toggle.component.scss')],
|
|
providers: [
|
|
{ provide: NG_VALUE_ACCESSOR, useExisting: ToggleComponent, multi: true },
|
|
],
|
|
})
|
|
export class ToggleComponent extends CheckboxComponent {
|
|
}
|