Code Monkey home page Code Monkey logo

pshtmltools's People

Contributors

martin9700 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ohhhellooow

pshtmltools's Issues

Function Set-AlternatingRow is giving error

Function Set-AlternatingRow is giving error as there is no term like 'Set-PSHAlternatingRows'. This is because the alias is given wrong in PSHTMLTools.psm1

Though the direct use of Set-PSHAlternatingRow works as expected

Set-PSHCellColor doesn't work for properties in the first column

$StartHTML = @"
Column1,Column2,Column3,Column4,Server
1,2,3,4,ServerA
1,1,2,4,ServerB
1,1,1,1,ServerC
test,one,two,three,ServerA
4,4,4,4,ServerB
4,3,2,1,.[?]\
"@ | ConvertFrom-Csv | ConvertTo-Html
$StartHTML | Set-PSHCellColor -Color Red -Filter "Column1 -eq 1" 

The output has no style="background-color:Red"

Set-PSHCellColor when Filter property matches in value

Set-PSHCellColor doesn't add the background-color when the the property name is matched in the value. Better explained with an example.

$StartHTML = @"
Column1 , Column2 , Column3 , Column4 , Server
1       , 2       , 3       , 4       , ServerA
1       , 1       , 2       , 4       , ServerB
1       , 1       , 1       , 1       , ServerC
test    , one     , two     , three   , ServerA
4       , 4       , 4       , 4       , ServerB
4       , 3       , 2       , 1       , .[?]\
"@ | ConvertFrom-Csv | ConvertTo-Html
$StartHTML | Set-PSHCellColor -Color Red -Filter 'server -eq "serverA"'

It seems the issue is line 134, -replace is replacing all matches in $Filter,
$Filter = $Filter -replace $Property,"$Value"`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.