angular_components icon indicating copy to clipboard operation
angular_components copied to clipboard

acx-scorecard inside a material-expansionpanel

Open stephan-gruen opened this issue 6 years ago • 1 comments

You can not put a acx-scorecard inside a material-expansionpanel. The scorecard will be always shown as part of the name/title of the expansionpanel, not as content.

dependencies:
  angular: ^6.0.0-alpha
  angular_components: ^0.14.0-alpha
<material-expansionpanel flat name="Test" [showSaveCancel]="false">
  <material-input floatingLabel  label="Im content"></material-input>
  <acx-scorecard
            label="Im part of the title"
            value="123"
            description="123"
            changeType="NEGATIVE">
  </acx-scorecard>
</material-expansionpanel>

stephan-gruen avatar Aug 01 '19 12:08 stephan-gruen

[value] is the selector for the content of the expansionpanel. I don't see us changing this anytime soon as it is a breaking change, but that is going to conflict with acx-scorecard. Renaming either will be a big breaking change that we would need to change a ton of files.

I think you can either change it to an expression [value]="foo" or add an element as a parent to the scorecard to work around this.

TedSander avatar Aug 02 '19 23:08 TedSander