Skip to content

Commit

Permalink
docs(input): update Maskito documentation (according to the latest …
Browse files Browse the repository at this point in the history
…major release `2.0.0`) (#3402)
  • Loading branch information
nsbarsukov authored Jan 24, 2024
1 parent 0e7b70f commit c5cee3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions static/usage/v7/input/mask/angular/app_module_ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { IonicModule } from '@ionic/angular';
import { AppComponent } from './app.component';
import { ExampleComponent } from './example.component';

import { MaskitoModule } from '@maskito/angular';
import { MaskitoDirective } from '@maskito/angular';

@NgModule({
imports: [BrowserModule, FormsModule, MaskitoModule, IonicModule.forRoot({})],
imports: [BrowserModule, FormsModule, MaskitoDirective, IonicModule.forRoot({})],
declarations: [AppComponent, ExampleComponent],
bootstrap: [AppComponent],
})
Expand Down
4 changes: 2 additions & 2 deletions static/usage/v7/input/mask/angular/example_component_ts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```ts
import { Component } from '@angular/core';

import { MaskitoOptions, MaskitoElementPredicateAsync } from '@maskito/core';
import { MaskitoOptions, MaskitoElementPredicate } from '@maskito/core';

@Component({
selector: 'app-example',
Expand All @@ -26,6 +26,6 @@ export class ExampleComponent {
],
};

readonly maskPredicate: MaskitoElementPredicateAsync = async (el) => (el as HTMLIonInputElement).getInputElement();
readonly maskPredicate: MaskitoElementPredicate = async (el) => (el as HTMLIonInputElement).getInputElement();
}
```
14 changes: 7 additions & 7 deletions static/usage/v7/input/mask/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ import angular_example_component_ts from './angular/example_component_ts.md';
'index.ts': javascript_index_ts,
},
dependencies: {
'@maskito/core': '^1.0.0',
'@maskito/core': '^2.0.0',
},
},
react: {
files: {
'src/main.tsx': react_main_tsx,
},
dependencies: {
'@maskito/react': '^1.0.0',
'@maskito/core': '^1.0.0',
'@maskito/react': '^2.0.0',
'@maskito/core': '^2.0.0',
},
},
vue: {
files: {
'src/components/Example.vue': vue_example_vue,
},
dependencies: {
'@maskito/vue': '^1.0.0',
'@maskito/core': '^1.0.0',
'@maskito/vue': '^2.0.0',
'@maskito/core': '^2.0.0',
},
},
angular: {
Expand All @@ -48,8 +48,8 @@ import angular_example_component_ts from './angular/example_component_ts.md';
'src/app/example.component.ts': angular_example_component_ts,
},
dependencies: {
'@maskito/angular': '^1.0.0',
'@maskito/core': '^1.0.0',
'@maskito/angular': '^2.0.0',
'@maskito/core': '^2.0.0',
},
},
}}
Expand Down

1 comment on commit c5cee3c

@vercel
Copy link

@vercel vercel bot commented on c5cee3c Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-gqykycf8t.vercel.app
ionic-docs-ionic1.vercel.app
ionic-docs-git-main-ionic1.vercel.app

Please sign in to comment.