Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
38f8fe76
Commit
38f8fe76
authored
3 years ago
by
mechtelm
Browse files
Options
Downloads
Patches
Plain Diff
Implement readonly
parent
8e583508
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/common/element-components/spell-correct.component.ts
+14
-2
14 additions, 2 deletions
...ects/common/element-components/spell-correct.component.ts
projects/common/models/spell-correct-element.ts
+3
-3
3 additions, 3 deletions
projects/common/models/spell-correct-element.ts
with
17 additions
and
5 deletions
projects/common/element-components/spell-correct.component.ts
+
14
−
2
View file @
38f8fe76
import
{
Component
,
ViewChild
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
,
ViewChild
}
from
'
@angular/core
'
;
import
{
MatInput
}
from
'
@angular/material/input
'
;
import
{
MatInput
}
from
'
@angular/material/input
'
;
import
{
MatButton
}
from
'
@angular/material/button
'
;
import
{
FormElementComponent
}
from
'
../form-element-component.directive
'
;
import
{
FormElementComponent
}
from
'
../form-element-component.directive
'
;
import
{
SpellCorrectElement
}
from
'
../models/spell-correct-element
'
;
import
{
SpellCorrectElement
}
from
'
../models/spell-correct-element
'
;
...
@@ -35,9 +36,20 @@ import { SpellCorrectElement } from '../models/spell-correct-element';
...
@@ -35,9 +36,20 @@ import { SpellCorrectElement } from '../models/spell-correct-element';
'
::ng-deep app-spell-correct .small-input div.mat-form-field-infix {border-top: none; padding: 0.75em 0 0.25em 0;}
'
'
::ng-deep app-spell-correct .small-input div.mat-form-field-infix {border-top: none; padding: 0.75em 0 0.25em 0;}
'
]
]
})
})
export
class
SpellCorrectComponent
extends
FormElementComponent
{
export
class
SpellCorrectComponent
extends
FormElementComponent
implements
OnInit
{
elementModel
!
:
SpellCorrectElement
;
elementModel
!
:
SpellCorrectElement
;
@
ViewChild
(
MatInput
)
inputElement
!
:
MatInput
;
@
ViewChild
(
MatInput
)
inputElement
!
:
MatInput
;
@
ViewChild
(
MatButton
)
buttonElement
!
:
MatButton
;
ngOnInit
():
void
{
super
.
ngOnInit
();
if
(
this
.
inputElement
&&
this
.
elementModel
.
readOnly
)
{
this
.
inputElement
.
readonly
=
true
;
}
if
(
this
.
buttonElement
&&
this
.
elementModel
.
readOnly
)
{
this
.
buttonElement
.
disabled
=
true
;
}
}
strikethrough
():
boolean
{
strikethrough
():
boolean
{
if
(
this
.
inputElement
)
{
if
(
this
.
inputElement
)
{
...
...
This diff is collapsed.
Click to expand it.
projects/common/models/spell-correct-element.ts
+
3
−
3
View file @
38f8fe76
import
{
FontElement
,
SurfaceUIElement
}
from
'
../interfaces/UIElementInterfaces
'
;
import
{
FontElement
,
SurfaceUIElement
}
from
'
../interfaces/UIElementInterfaces
'
;
import
{
InputElement
,
UIElement
}
from
'
./uI-element
'
;
import
{
InputElement
,
UIElement
}
from
'
./uI-element
'
;
import
{
initFontElement
,
initSurfaceElement
}
from
'
../util/unit-interface-initializer
'
;
import
{
initFontElement
,
initSurfaceElement
}
from
'
../util/unit-interface-initializer
'
;
export
class
SpellCorrectElement
extends
InputElement
implements
FontElement
,
SurfaceUIElement
{
export
class
SpellCorrectElement
extends
InputElement
implements
FontElement
,
SurfaceUIElement
{
bold
:
boolean
=
false
;
bold
:
boolean
=
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment