This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
.grid { | |
display: flex; | |
flex-direction: column; | |
height: 300px; | |
} | |
.header { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'./base' | |
], function (Update) { | |
// avoid the data: cascade because we may need to use (table)[x] syntax | |
var table = '//*[@id="content"]//*[contains(concat(" ", @class, " "), " panel ")][not(contains(concat(" ", @class, " "), " hidden "))]//ha-table'; | |
function header_named(name) { | |
return { | |
'by' :'xpath', | |
'data': table + '//th//*[contains(text(), "' + name + '")]/ancestor::th' |