question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrapping helper properties into multiple lines

See original GitHub issue

It’s not included on emblemjs.com, so I’ve looked into the test specs, and I’ve found that it is possible to wrap properties into more lines with the use of brackets. But it doesn’t seem to work properly with Ember helpers, for example with Ember.Select Static attributes are good (class="something"), however attribute bindings doesn’t seem to work either in the form of value=something or valueBinding="something". This is what I tried:

Ember.Select [
  content=something
  optionValuePath="content.value"
  optionLabelPath="content.label"
  value=somethingValue
  class="something" ]

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kjhangianicommented, May 11, 2015

Converting:

= inline-edit-select selectedOption=model.supervisorUser allOptions=filteredUsers prompt="Supervisor" name="supervisorUser" saveAction="updateControlsDatum"

To:

inline-edit-select [
  selectedOption=model.supervisorUser 
  allOptions=filteredUsers
  prompt="Supervisor" 
  name="supervisorUser"
  saveAction="updateControlsDatum" ]

fails for me using ember-cli / emblem 0.5.0 and ember-cli-emblem-hbs-printer 0.2.1 with the following error:

File: soxhub-client/templates/controls-datum/inline-form.emblem (16)
Expected _1BeginStatement, _1DEDENT or end of input but "\uEFEF" found.

I have tried various positions on the brackets as well as indenting, but I cannot seem to get this to compile. Am I doing something wrong? inline-edit-select is an ember component

0reactions
lolmauscommented, Dec 30, 2014

How do i split normal html tag attributes into multiple lines?

How do i provide element/helper content when its attributes are split into multiple lines?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you stop Prettier in VS code splitting attributes onto ...
A quick fix is to go to Prettier Extension Settings (ctrl + shift + X) and in Prettier Extension Settings search for "Print...
Read more >
Wrapping or Getting Multiline Text Input Interacting With List Box
I want the Text Input control to have the filled-in text wrap (be multi-line). There appears to be no property for that.
Read more >
How to: Wrap All Long Lines in Code | CodeRush
Use the Right margin column size option with the “Wrap if long or multiline” option in the Editor | C# | Formatting |...
Read more >
Line Breaks and Wrapping - ReSharper - JetBrains
Use this page to configure how ReSharper should add or remove line breaks before/after specific language constructs, and whether to wrap ...
Read more >
overflow-wrap | CSS-Tricks
The overflow-wrap property in CSS allows you to specify that the browser can break a line of text inside the targeted element onto...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found