Skip to content

Commit

Permalink
patch: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidg3 committed Aug 27, 2024
1 parent dccf1c9 commit ffe78e7
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/pages/concepts/views/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class RootSkillViewTest extends AbstractSpruceFixtureTest {
<details>
<summary><strong>Production 1a</strong>:Configure the <em>ViewControllerFactory</em></summary>

Since we're starting with an empty `SkillView`, we'll implement just the `constructor` and call `setController(...)` on the `ViewControllerFactory` to set the `MasterSkillViewController` and `MasterListCardViewController`.
Since we're starting with an empty `SkillView`, we'll implement just the `constructor` and call `setController(...)` on the `ViewControllerFactory` to set the `CrudMasterSkillViewController` and `MasterListCardViewController`.

```typescript
import {
Expand All @@ -82,7 +82,7 @@ import {
SkillView,
} from '@sprucelabs/heartwood-view-controllers'
import {
MasterSkillViewController,
CrudMasterSkillViewController,
MasterListCardViewController,
} from '@sprucelabs/spruce-crud-utils'

Expand All @@ -94,7 +94,7 @@ export default class RootSkillViewController extends AbstractSkillViewController

this.getVcFactory().setController(
'crud.master-skill-view',
MasterSkillViewController
CrudMasterSkillViewController
)
this.getVcFactory().setController(
'crud.master-list-card',
Expand Down Expand Up @@ -131,20 +131,20 @@ import {
SkillView,
} from '@sprucelabs/heartwood-view-controllers'
import {
MasterSkillViewController,
CrudMasterSkillViewController,
MasterListCardViewController,
} from '@sprucelabs/spruce-crud-utils'

export default class RootSkillViewController extends AbstractSkillViewController {
public static id = 'root'
private masterSkillViewVc: MasterSkillViewController
private masterSkillViewVc: CrudMasterSkillViewController

public constructor(options: ViewControllerOptions) {
super(options)

this.getVcFactory().setController(
'crud.master-skill-view',
MasterSkillViewController
CrudMasterSkillViewController
)
this.getVcFactory().setController(
'crud.master-list-card',
Expand Down Expand Up @@ -226,20 +226,20 @@ import {
SkillViewControllerLoadOptions,
} from '@sprucelabs/heartwood-view-controllers'
import {
MasterSkillViewController,
CrudMasterSkillViewController,
MasterListCardViewController,
} from '@sprucelabs/spruce-crud-utils'

export default class RootSkillViewController extends AbstractSkillViewController {
public static id = 'root'
private masterSkillViewVc: MasterSkillViewController
private masterSkillViewVc: CrudMasterSkillViewController

public constructor(options: ViewControllerOptions) {
super(options)

this.getVcFactory().setController(
'crud.master-skill-view',
MasterSkillViewController
CrudMasterSkillViewController
)
this.getVcFactory().setController(
'crud.master-list-card',
Expand Down Expand Up @@ -288,20 +288,20 @@ import {
SkillViewControllerLoadOptions,
} from '@sprucelabs/heartwood-view-controllers'
import {
MasterSkillViewController,
CrudMasterSkillViewController,
MasterListCardViewController,
} from '@sprucelabs/spruce-crud-utils'

export default class RootSkillViewController extends AbstractSkillViewController {
public static id = 'root'
private masterSkillViewVc: MasterSkillViewController
private masterSkillViewVc: CrudMasterSkillViewController

public constructor(options: ViewControllerOptions) {
super(options)

this.getVcFactory().setController(
'crud.master-skill-view',
MasterSkillViewController
CrudMasterSkillViewController
)
this.getVcFactory().setController(
'crud.master-list-card',
Expand Down Expand Up @@ -341,4 +341,8 @@ export default class RootSkillViewController extends AbstractSkillViewController

```

</details>
</details>

### Configuring your `DetailSkillView`

Now that you have your `MasterSkillView` rendering, let's configure your `DetailSkillView` to render as a `CrudDetailSkillView`.

0 comments on commit ffe78e7

Please sign in to comment.