mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
Target subtitle added
This commit is contained in:
@@ -157,15 +157,7 @@ export default class PinElement extends IElement {
|
||||
}
|
||||
|
||||
getPinDisplayName() {
|
||||
let matchResult = null
|
||||
if (
|
||||
this.entity.PinToolTip
|
||||
// Match up until the first \n excluded or last character
|
||||
&& (matchResult = this.entity.PinToolTip.match(/\s*(.+?(?=\n)|.+\S)\s*/))
|
||||
) {
|
||||
return Utility.formatStringName(matchResult[1])
|
||||
}
|
||||
return Utility.formatStringName(this.entity.PinName)
|
||||
return this.entity.getDisplayName()
|
||||
}
|
||||
|
||||
/** @return {CSSResult} */
|
||||
|
||||
Reference in New Issue
Block a user