()
| 45 | } |
| 46 | |
| 47 | func (e *VDomElem) Key() string { |
| 48 | keyVal, ok := e.Props[KeyPropKey] |
| 49 | if !ok { |
| 50 | return "" |
| 51 | } |
| 52 | keyStr, ok := keyVal.(string) |
| 53 | if ok { |
| 54 | return keyStr |
| 55 | } |
| 56 | return "" |
| 57 | } |
| 58 | |
| 59 | func (e *VDomElem) WithKey(key string) *VDomElem { |
| 60 | if e == nil { |
no outgoing calls
no test coverage detected