Creating custom nested component - adding children
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
まず src/components/ReactComponent.jsx を読み、issue で説明されているカスタムの NestedReactComponent と attachReact のエントリーポイントをたどります。this.components がどのように扱われているかを確認します。作成したカスタムコンポーネントが attachReact を通じてネストされた子要素をレンダリングできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
I would like to create custom nested component. But not sure how to proceed in this case.
I wanted to go with writing similar class as https://github.com/formio/react/blob/master/src/components/ReactComponent.jsx that wound extend Formio.Components.components.nested.
Something like
import { Formio } from '@formio/js';
const Nested = Formio.Components.components.nested;
export abstract class NestedReactComponent extends Nested {
...
abstract attachReact(element:, ref);
}
And I would implement all the methods needed as in ReactComponent.
Then I would like to extend this base class for every custom nested component needed. And this is sort of working.
I cannot actually add the (nested) children to the created custom component. I can see that i have this.components in the base class, but I don't how to add them as children to the element overridden attachReact method.
- 主要言語
- TypeScript
- スター
- 371
- フォーク
- 309
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
formio/react のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
onChange `modified` property remains false when file component is updated再び着手できるかも @ZenMasterJacob20011 が 293 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder onChange callback not triggered when options prop is provided再び着手できるかも @Victoriya25 が 335 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder with OnChange broke textarea再び着手できるかも @lane-formio が 307 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
似ている issue
-
bot:ai-assisted component:platform-js status:untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
midnightntwrk/platform-js#38 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ranxianglei/billion-context#7068 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ilan-pinto/roaring-lions#1552 ·
メンテナーはふだん 1 日以内に返信