Skip to content

Commit

Permalink
#545618 | Add configurable identifier to splitters (#1181)
Browse files Browse the repository at this point in the history
(cherry picked from commit f4dd0e3)
  • Loading branch information
AntonKechashin authored and sc-ruslanmatkovskyi committed Oct 4, 2022
1 parent 984c0c9 commit e0d7a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ export const Default = (props: ComponentProps): JSX.Element => {
props.params.Styles8,
];
const enabledPlaceholders = props.params.EnabledPlaceholders.split(',');
const id = props.params.RenderingIdentifier;

return (
<div className={`row component column-splitter ${styles}`}>
<div className={`row component column-splitter ${styles}`} id={id ? id : undefined}>
{enabledPlaceholders.map((ph, index) => {
const phKey = `column-${ph}-{*}`;
const phStyles = `${columnWidths[+ph - 1]} ${columnStyles[+ph - 1] ?? ''}`.trimEnd();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ export const Default = (props: ComponentProps): JSX.Element => {
props.params.Styles8,
];
const enabledPlaceholders = props.params.EnabledPlaceholders.split(',');
const id = props.params.RenderingIdentifier;

return (
<div className={`component row-splitter ${styles}`}>
<div className={`component row-splitter ${styles}`} id={id ? id : undefined}>
{enabledPlaceholders.map((ph, index) => {
const phKey = `row-${ph}-{*}`;
const phStyles = `${rowStyles[+ph - 1] ?? ''}`.trimEnd();
Expand Down

0 comments on commit e0d7a62

Please sign in to comment.